package pers.ervinse.shoppingmall.domain;

public class Cart {
    private int id;                // 商品ID
    private String goodsName;      // 商品名称
    private Integer goodsNumber;   // 商品数量
    private Boolean isSelected;    // 是否选中
    private Boolean isPaid;        // 是否支付

    // 构造方法，getter 和 setter 方法
    public Cart() {}

    public Cart(int id, String goodsName, Integer goodsNumber, Boolean isSelected, Boolean isPaid) {
        this.id = id;
        this.goodsName = goodsName;
        this.goodsNumber = goodsNumber;
        this.isSelected = isSelected;
        this.isPaid = isPaid;
    }

    // Getter and Setter Methods
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public Integer getGoodsNumber() {
        return goodsNumber;
    }

    public void setGoodsNumber(Integer goodsNumber) {
        this.goodsNumber = goodsNumber;
    }

    public Boolean getIsSelected() {
        return isSelected;
    }

    public void setIsSelected(Boolean isSelected) {
        this.isSelected = isSelected;
    }

    public Boolean getIsPaid() {
        return isPaid;
    }

    public void setIsPaid(Boolean isPaid) {
        this.isPaid = isPaid;
    }
}
